package com.yima.baseproj.module.app.config;

import com.baomidou.mybatisplus.core.toolkit.Wrappers;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

@Service
public class AppConfigService extends ServiceImpl<AppConfigMapper, AppConfigEntity> {

    public AppConfigEntity findByType(String type) {
        return getOne(Wrappers.<AppConfigEntity>query().eq("type",type));
    }
}
